import { Application } from 'egg';

export default (app: Application) => {
  const { controller, router } = app;

  router.get('/', controller.home.index);
  router.post('/iotBAPI/user/login',controller.user.user.login);
  router.post('/iotBAPI/user/refresh_token',controller.user.user.refreshToken);
  router.post('/iotBAPI/user/logout',controller.user.user.refreshToken);
  router.get('/iotBAPI/user/info',controller.user.user.getUserInfo);
  
};
